@mixin clearfix {
  &:after {
    content: "";
    display: table;
    clear: both;
  }
}
$breakpoint-tablet: 768px;
* {
    margin:0;
    padding:0;
    border:none;
    font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    box-sizing: border-box;
}
body {
    background: url('../imgs/whaletail.jpg') center center;
    background-size: cover;
    background-attachment: fixed;
    font-size:15px;
}
@media (max-width: $breakpoint-tablet) {
    body{
        background: url('../imgs/bg.jpg') center center;
        background-size: cover;
        background-attachment: fixed;
    }
}
.login-box {
    position:absolute;
    display: block;
    top: 50%;
    left:50%;
    width: 100%;
    text-align: center;
    height:200px;
    width: 300px;
    margin-left: -150px;
    margin-top: -100px;
    background: rgba(255,255,255,.8);
    border-radius: 10px;
    padding: 20px;
    color: rgb(51,51,51);
    input {
        height:30px;
        font-size: 12px;
        border:none;
        border-radius: 2px;
        box-shadow: 0 2px 2px 0 rgba(0,0,0,0.16), 0 0 0 1px rgba(0,0,0,0.08);
        transition: box-shadow 200ms cubic-bezier(0.4, 0.0, 0.2, 1);
        margin-top: 30px;
        padding:10px;
        outline:none;
        &:hover,&:focus {
          box-shadow:0 3px 8px 0 rgba(0,0,0,0.2), 0 0 0 1px rgba(0,0,0,0.08);
        }
    }
    button {
        border-radius: 2px;
        color: #757575;
        cursor: default;
        font-family: arial,sans-serif;
        font-size: 13px;
        font-weight: bold;
        margin: 11px 4px;
        min-width: 54px;
        padding: 0 16px;
        text-align: center;
        height: 27px;
        line-height: 18px;
        &:hover {
            background-image: -webkit-gradient(linear,left top,left bottom,from(#f8f8f8),to(#f1f1f1));
            background-image: -webkit-linear-gradient(top,#f8f8f8,#f1f1f1);
            -webkit-box-shadow: 0 1px 1px rgba(0,0,0,0.1);
            background-color: #f8f8f8;
            background-image: linear-gradient(top,#f8f8f8,#f1f1f1);
            background-image: -o-linear-gradient(top,#f8f8f8,#f1f1f1);
            border: 1px solid #c6c6c6;
            box-shadow: 0 1px 1px rgba(0,0,0,0.1);
            color: #222;
        }
    }
}
.chat-room {
    color:#fff;
    .welcome {
        @include clearfix;
        width:100%;
        color:rgba(0, 0, 0, 0.870588);
        background:#fff;
        padding: 10px 0;
        position:fixed;
        top:0;
        line-height:24px;
        .room-name {
            float:left;
            margin-left:5%;
        }
    }
}
.room-status {
    margin-top:50px;
    text-align:center;
    font-size: 13px;
}
.messages {
    padding:5px 10px 60px;
    font-size: 15px;
    .one-message.system-message {
        font-size: 13px;
        color: #e0e0e0;
        flex-direction:row;
        justify-content: center;
        align-items: baseline;
    }
    .one-message {
        padding-bottom:10px;
        display:flex;
        flex-direction:column;
        justify-content: flex-start;
        align-items: flex-start;
        p {
            margin-bottom:5px;
        }
        .time {
            color: #e0e0e0;
        }
        .message-content {
            color: rgba(0,0,0,0.870588);
            padding: 5px 10px;
            margin: 0;
            box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.117647);
            word-break: break-all;
            border-radius: 10px;
            display: inline-block;
            background-color: #f1f1f1;
        }
    }
    .one-message.me {
        flex-direction:column;
        justify-content:flex-start;
        align-items: flex-end;
        p {
        }
        .message-content {
            background: #a2e563;
        }
    }


}
.input-box {
    position:fixed;
    bottom:0;
    width:100%;
    background:#fff;
    padding: 10px 0;
    @include clearfix;
    font-size: 14px;
    .input {
        input {
            margin-left:5%;
            width: 70%;
            outline: none;
            float:left;
            color: rgba(0, 0, 0, 0.870588);
            font-size:100%;
            line-height: 24px;
            border-bottom-width: 2px;
            -webkit-transition: border-color .2s ease;
            background: 0;
            border: 0;
            border-bottom: 2px solid rgb(224,224,224);
        }
    }
}
.button {
    float:right;
    width:20%;
    button {
        background-color: rgb(255, 255, 255);
        transition: all 450ms cubic-bezier(0.23, 1, 0.32, 1) 0ms;
        box-sizing: border-box;
        font-family: Roboto, sans-serif;
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
        box-shadow: rgba(0, 0, 0, 0.117647) 0px 1px 6px, rgba(0, 0, 0, 0.117647) 0px 1px 4px;
        border-radius: 2px;
        display: inline-block;
        padding:3px 15px;
        font-size: 13px;
        letter-spacing: 0px;
        font-weight: 500;
        margin: 0px;
        color: rgba(0, 0, 0, 0.870588);
        min-width:65px;
        outline:0;
    }
}
